package com.panopset.sf;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;

import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.TitledBorder;

import com.panopset.compat.Strings;

public class PanTextField extends PanField {

    public PanTextField(final Windoc swingDoc, final String borderTitle,
            final String defaultValue) {
    	super(swingDoc, borderTitle, defaultValue);
    }

	@Override
	protected void populatePanel(final JPanel panel) {
        panel.setLayout(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.fill = GridBagConstraints.HORIZONTAL;
        gbc.weightx = 1.0;
        panel.add(getTF(), gbc);
	}
}
